package com.chapter01exercise.homework14;

/**
 * @Author 小闽
 * @Date 2024/8/21 22:34
 * @PackageName: com.chapter01exercise.homework14
 * @ClassName: B
 * @Description: 子类
 * @Version 1.0
 */
public class B extends A {
    public B(){
        System.out.println("我是B类的无参构造");
    }
    public B(String name){
        System.out.println(name + "我是B类的有参构造");
    }
}
